/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

(function (root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define(['exports', 'echarts'], factory);
    } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
        // CommonJS
        factory(exports, require('echarts'));
    } else {
        // Browser globals
        factory({}, root.echarts);
    }
}(this, function (exports, echarts) {
    var log = function (msg) {
        if (typeof console !== 'undefined') {
            console && console.error && console.error(msg);
        }
    }
    if (!echarts) {
        log('ECharts is not Loaded');
        return;
    }
    if (!echarts.registerMap) {
        log('ECharts Map is not loaded')
        return;
    }
    echarts.registerMap('fengxian', {
        "type": "FeatureCollection",
        "features": [
            {
                "type": "Feature",
                "geometry": {
                    "type": "Polygon",
                    "coordinates": [
                        [
                            [
                                121.57047,
                                30.99835
                            ],
                            [
                                121.58294,
                                30.99949
                            ],
                            [
                                121.58431,
                                31.00082
                            ],
                            [
                                121.59468,
                                31.0007
                            ],
                            [
                                121.59558,
                                31.00205
                            ],
                            [
                                121.61206,
                                31.00063
                            ],
                            [
                                121.61249,
                                31.00144
                            ],
                            [
                                121.61471,
                                31.00125
                            ],
                            [
                                121.61772,
                                30.99569
                            ],
                            [
                                121.62116,
                                30.99258
                            ],
                            [
                                121.65453,
                                30.99326
                            ],
                            [
                                121.66311,
                                30.99272
                            ],
                            [
                                121.66367,
                                30.99142
                            ],
                            [
                                121.6638,
                                30.99239
                            ],
                            [
                                121.66752,
                                30.99201
                            ],
                            [
                                121.67248,
                                30.98988
                            ],
                            [
                                121.67455,
                                30.9918
                            ],
                            [
                                121.69298,
                                30.98934
                            ],
                            [
                                121.7055,
                                30.98498
                            ],
                            [
                                121.7213,
                                30.97514
                            ],
                            [
                                121.73339,
                                30.96625
                            ],
                            [
                                121.73792,
                                30.96064
                            ],
                            [
                                121.73686,
                                30.9587
                            ],
                            [
                                121.73999,
                                30.95672
                            ],
                            [
                                121.74151,
                                30.95752
                            ],
                            [
                                121.74374,
                                30.95658
                            ],
                            [
                                121.74786,
                                30.95189
                            ],
                            [
                                121.74923,
                                30.95305
                            ],
                            [
                                121.75198,
                                30.95273
                            ],
                            [
                                121.75929,
                                30.94915
                            ],
                            [
                                121.76103,
                                30.94761
                            ],
                            [
                                121.76092,
                                30.94461
                            ],
                            [
                                121.76455,
                                30.94176
                            ],
                            [
                                121.76168,
                                30.94013
                            ],
                            [
                                121.76148,
                                30.93842
                            ],
                            [
                                121.76428,
                                30.93852
                            ],
                            [
                                121.76384,
                                30.93685
                            ],
                            [
                                121.76643,
                                30.93653
                            ],
                            [
                                121.76799,
                                30.93833
                            ],
                            [
                                121.77125,
                                30.93393
                            ],
                            [
                                121.77303,
                                30.93393
                            ],
                            [
                                121.77337,
                                30.93155
                            ],
                            [
                                121.77873,
                                30.93019
                            ],
                            [
                                121.77766,
                                30.92672
                            ],
                            [
                                121.77941,
                                30.92289
                            ],
                            [
                                121.77773,
                                30.9226
                            ],
                            [
                                121.77952,
                                30.92249
                            ],
                            [
                                121.78111,
                                30.91757
                            ],
                            [
                                121.77841,
                                30.90531
                            ],
                            [
                                121.77899,
                                30.89947
                            ],
                            [
                                121.77774,
                                30.89488
                            ],
                            [
                                121.77881,
                                30.89458
                            ],
                            [
                                121.77602,
                                30.88642
                            ],
                            [
                                121.77668,
                                30.881
                            ],
                            [
                                121.77313,
                                30.8806
                            ],
                            [
                                121.76814,
                                30.86327
                            ],
                            [
                                121.76934,
                                30.85043
                            ],
                            [
                                121.79377,
                                30.81686
                            ],
                            [
                                121.68119,
                                30.8184
                            ],
                            [
                                121.64842,
                                30.8162
                            ],
                            [
                                121.60133,
                                30.80508
                            ],
                            [
                                121.55283,
                                30.7894
                            ],
                            [
                                121.5172,
                                30.77539
                            ],
                            [
                                121.47877,
                                30.75634
                            ],
                            [
                                121.44672,
                                30.80558
                            ],
                            [
                                121.44543,
                                30.80487
                            ],
                            [
                                121.44164,
                                30.80683
                            ],
                            [
                                121.43702,
                                30.8181
                            ],
                            [
                                121.43529,
                                30.81835
                            ],
                            [
                                121.43402,
                                30.81703
                            ],
                            [
                                121.43386,
                                30.81835
                            ],
                            [
                                121.42053,
                                30.8198
                            ],
                            [
                                121.41929,
                                30.81602
                            ],
                            [
                                121.41514,
                                30.8158
                            ],
                            [
                                121.41552,
                                30.81994
                            ],
                            [
                                121.41396,
                                30.82062
                            ],
                            [
                                121.41417,
                                30.82175
                            ],
                            [
                                121.40478,
                                30.82308
                            ],
                            [
                                121.40099,
                                30.8274
                            ],
                            [
                                121.40068,
                                30.8301
                            ],
                            [
                                121.40363,
                                30.82988
                            ],
                            [
                                121.40421,
                                30.83379
                            ],
                            [
                                121.39777,
                                30.83379
                            ],
                            [
                                121.39699,
                                30.82799
                            ],
                            [
                                121.39327,
                                30.82769
                            ],
                            [
                                121.39205,
                                30.82782
                            ],
                            [
                                121.39172,
                                30.82992
                            ],
                            [
                                121.38759,
                                30.82986
                            ],
                            [
                                121.3876,
                                30.83281
                            ],
                            [
                                121.38349,
                                30.83405
                            ],
                            [
                                121.38415,
                                30.83514
                            ],
                            [
                                121.38322,
                                30.83571
                            ],
                            [
                                121.38098,
                                30.8352
                            ],
                            [
                                121.37907,
                                30.84324
                            ],
                            [
                                121.38544,
                                30.84318
                            ],
                            [
                                121.38377,
                                30.85102
                            ],
                            [
                                121.38401,
                                30.86349
                            ],
                            [
                                121.38191,
                                30.864
                            ],
                            [
                                121.38286,
                                30.86904
                            ],
                            [
                                121.38279,
                                30.87449
                            ],
                            [
                                121.3815,
                                30.8766
                            ],
                            [
                                121.38221,
                                30.87896
                            ],
                            [
                                121.37691,
                                30.88029
                            ],
                            [
                                121.36723,
                                30.88667
                            ],
                            [
                                121.36327,
                                30.88696
                            ],
                            [
                                121.35669,
                                30.90862
                            ],
                            [
                                121.35153,
                                30.91365
                            ],
                            [
                                121.35508,
                                30.91634
                            ],
                            [
                                121.35605,
                                30.91974
                            ],
                            [
                                121.35216,
                                30.92381
                            ],
                            [
                                121.35116,
                                30.93063
                            ],
                            [
                                121.35511,
                                30.93109
                            ],
                            [
                                121.3547,
                                30.93351
                            ],
                            [
                                121.35564,
                                30.93404
                            ],
                            [
                                121.36266,
                                30.93476
                            ],
                            [
                                121.36121,
                                30.94491
                            ],
                            [
                                121.36446,
                                30.94547
                            ],
                            [
                                121.36547,
                                30.94723
                            ],
                            [
                                121.36248,
                                30.9489
                            ],
                            [
                                121.36286,
                                30.95954
                            ],
                            [
                                121.36099,
                                30.96558
                            ],
                            [
                                121.3611,
                                30.97283
                            ],
                            [
                                121.35871,
                                30.97786
                            ],
                            [
                                121.39066,
                                30.98741
                            ],
                            [
                                121.40933,
                                30.99023
                            ],
                            [
                                121.42397,
                                30.99452
                            ],
                            [
                                121.44081,
                                31.00578
                            ],
                            [
                                121.4483,
                                31.00746
                            ],
                            [
                                121.45995,
                                31.0074
                            ],
                            [
                                121.47636,
                                31.01334
                            ],
                            [
                                121.48916,
                                31.01496
                            ],
                            [
                                121.49288,
                                31.01275
                            ],
                            [
                                121.49195,
                                31.01003
                            ],
                            [
                                121.49621,
                                30.99797
                            ],
                            [
                                121.49888,
                                30.99821
                            ],
                            [
                                121.49882,
                                30.99942
                            ],
                            [
                                121.50475,
                                31.00355
                            ],
                            [
                                121.51455,
                                31.00587
                            ],
                            [
                                121.51701,
                                31.00763
                            ],
                            [
                                121.52224,
                                31.00296
                            ],
                            [
                                121.52008,
                                31.00256
                            ],
                            [
                                121.52032,
                                30.99935
                            ],
                            [
                                121.52459,
                                30.99915
                            ],
                            [
                                121.53196,
                                30.99481
                            ],
                            [
                                121.53451,
                                30.99585
                            ],
                            [
                                121.53777,
                                30.99468
                            ],
                            [
                                121.53824,
                                30.99314
                            ],
                            [
                                121.5433,
                                30.9942
                            ],
                            [
                                121.54468,
                                30.99298
                            ],
                            [
                                121.545,
                                30.99403
                            ],
                            [
                                121.54954,
                                30.98831
                            ],
                            [
                                121.55139,
                                30.98796
                            ],
                            [
                                121.55279,
                                30.98886
                            ],
                            [
                                121.55348,
                                30.99251
                            ],
                            [
                                121.55255,
                                30.99466
                            ],
                            [
                                121.55622,
                                30.99338
                            ],
                            [
                                121.55591,
                                30.99515
                            ],
                            [
                                121.5635,
                                30.99577
                            ],
                            [
                                121.57047,
                                30.99835
                            ]
                        ]
                    ]
                },
                "properties": {
                    "name": "奉贤区",
                    "adcode": "310120",
                    "telecode": "021",
                    "level": "district",
                    "parent": {
                        "name": "上海市市辖区",
                        "level": "city",
                        "adcode": "310100",
                        "center": {
                            "crs": {
                                "type": "name",
                                "properties": {
                                    "name": "urn:ogc:def:crs:EPSG:6.3:4326"
                                }
                            },
                            "type": "Point",
                            "coordinates": [
                                121.472644,
                                31.231706
                            ]
                        }
                    },
                    "center": {
                        "lng": 121.458472,
                        "lat": 30.912345
                    }
                }
            },
            {
                "type": "Feature",
                "properties": {
                    "name": "供水区域",
                    "adcode": "3101201",
                    "telecode": "021",
                    "level": "area",
                    "parent": {
                        "name": "奉贤区",
                        "level": "district",
                        "adcode": "310120",
                        "center": {
                            "crs": {
                                "type": "name",
                                "properties": {
                                    "name": "urn:ogc:def:crs:EPSG:6.3:4326"
                                }
                            },
                            "type": "Point",
                            "coordinates": [
                                121.472644,
                                31.231706
                            ]
                        }
                    },
                    "center": {
                        "lng": 121.458472,
                        "lat": 30.912345
                    }
                },
                "geometry": {
                    "type": "Polygon",
                    "coordinates": [
                        [
                            [
                                121.45523071289061,
                                30.864215523446415
                            ],
                            [
                                121.53179168701172,
                                30.864215523446415
                            ],
                            [
                                121.53179168701172,
                                30.9013409420108
                            ],
                            [
                                121.45523071289061,
                                30.9013409420108
                            ],
                            [
                                121.45523071289061,
                                30.864215523446415
                            ]
                        ]
                    ]
                }
            }

        ]
    });
}));